home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/unix/c/RCS/getdtables,v $
- * $Date: 1996/10/30 21:57:16 $
- * $Revision: 1.1 $
- * $State: Rel $
- * $Author: unixlib $
- *
- * $Log: getdtables,v $
- * Revision 1.1 1996/10/30 21:57:16 unixlib
- * Initial revision
- *
- ***************************************************************************/
-
- static const char rcs_id[] = "$Id: getdtables,v 1.1 1996/10/30 21:57:16 unixlib Rel $";
-
- /* unix.c.getdtables. Implementation of getdtablesize ().
-
- Written by Nick Burrett, 13 October 1996. */
-
- #include <limits.h>
- #include <unistd.h>
-
- /* Return the maximum number of file descriptors
- the current process could possibly have. */
-
- /* A stub function that really should take into account the
- actual number of files open on RISC OS and determine whether
- that OPEN_MAX files can still be opened. Also should take
- into account getrusage (). */
-
- int
- getdtablesize (void)
- {
- return OPEN_MAX;
- }
-